﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace virtuaPol.Controls
{
    /// <summary>
    /// Interaction logic for AskUserDlg.xaml
    /// </summary>
    public partial class AskUserDlg : Window
    {
        public bool Answer { get; set; }

        public AskUserDlg(string question)
        {
            Answer = false;
            InitializeComponent();
            TxtQuestion.Text = question;
        }

        private void BtYes_Click(object sender, RoutedEventArgs e)
        {
            Answer = true;
            this.Close();
        }

        private void BtNo_Click(object sender, RoutedEventArgs e)
        {
            Answer = false;
            this.Close();
        }
    }
}
